package legoproject.Behaviors;

import legoproject.*;
import legoproject.Behaviors.Behavior;
import java.util.ArrayList;

public class SteeringSearch implements Behavior {

    public boolean condition() {
        return true;
    }

    public ArrayList behave() {
        ArrayList result = new ArrayList();
        result.add(new Instruction(InstructionType.DRIVE, 1000, (int) (Math.random() * 100)));
        result.add(new Instruction(InstructionType.DRIVE, 1000, (int) (Math.random() * 100)));
        result.add(new Instruction(InstructionType.DRIVE, 1000, (int) (Math.random() * 100)));
        return result;
    }
}

